import './assets/main.css'
import './assets/custom.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { sessionManager } from './utils/sessionManager'
import { initEnvironment } from './config/env'

const app = createApp(App)

app.use(router)

app.mount('#app')

// 初始化环境配置（设置页面标题等）
initEnvironment()

// 初始化页面离开监听器，支持场景3：页面刷新时自动取消任务
sessionManager.initPageLeaveListener()
